package com.sc.nft.config.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration()
@RefreshScope
public class UserRequestRecordConfig {

    /**
     * 用户请求次数阈值 1 分钟超过 40 次
     */
    @Value("${limit.number.request.valueForRecord}")
    private String valueForRecord;

    /**
     * 用户请求过期时间阈值 61
     */
    @Value("${limit.number.request.valueForExpire}")
    private String valueForExpire;

    /**
     * 是否启用该注解
     */
    @Value("${limit.number.request.isOpen}")
    private Boolean isOpen;

}
